home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / plugin / observer / observer.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-26  |  560 b   |  33 lines

  1. enum
  2. {
  3.     TYPE_OBSERVER=0x199,
  4. };
  5.  
  6. class observer : public bsp_object
  7. {
  8. public:
  9.     observer() { type=TYPE_OBSERVER; };
  10.  
  11.     float rotvel;
  12.     float mousevel;
  13.     float moveforce;
  14.     float maxvel;
  15.     float veldamp;
  16.  
  17.     void check_keys(int dt);
  18.     void init();
  19.     int step(int dt);
  20.     void draw();
  21.     int get_custom_param_desc(int i,param_desc *pd);
  22.     bsp_object *clone();
  23. };
  24.  
  25. class observer_desc : public class_desc
  26. {
  27. public:
  28.     void *create() { return new observer; };
  29.     char *get_name() { return "observer"; };
  30.     int get_type() { return TYPE_OBSERVER; };
  31. };
  32.  
  33.